ru.CryptoPro.JCPxml.dsig.internal.dom
Class DOMSignatureProperties
java.lang.Object
ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
ru.CryptoPro.JCPxml.dsig.internal.dom.DOMSignatureProperties
- All Implemented Interfaces:
- javax.xml.crypto.dsig.SignatureProperties, javax.xml.crypto.XMLStructure
public final class DOMSignatureProperties
- extends DOMStructure
- implements javax.xml.crypto.dsig.SignatureProperties
DOM-based implementation of SignatureProperties.
| Fields inherited from interface javax.xml.crypto.dsig.SignatureProperties |
TYPE |
|
Constructor Summary |
DOMSignatureProperties(org.w3c.dom.Element propsElem,
javax.xml.crypto.XMLCryptoContext context)
Creates a DOMSignatureProperties from an element. |
DOMSignatureProperties(java.util.List<? extends javax.xml.crypto.dsig.SignatureProperty> properties,
java.lang.String id)
Creates a DOMSignatureProperties from the specified
parameters. |
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getId()
|
java.util.List |
getProperties()
|
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context)
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.crypto.XMLStructure |
isFeatureSupported |
DOMSignatureProperties
public DOMSignatureProperties(java.util.List<? extends javax.xml.crypto.dsig.SignatureProperty> properties,
java.lang.String id)
- Creates a
DOMSignatureProperties from the specified
parameters.
- Parameters:
properties - a list of one or more SignaturePropertys. The
list is defensively copied to protect against subsequent modification.id - the Id (may be null)
- Throws:
java.lang.ClassCastException - if properties contains any
entries that are not of type SignatureProperty
java.lang.IllegalArgumentException - if properties is empty
java.lang.NullPointerException - if properties
DOMSignatureProperties
public DOMSignatureProperties(org.w3c.dom.Element propsElem,
javax.xml.crypto.XMLCryptoContext context)
throws javax.xml.crypto.MarshalException
- Creates a
DOMSignatureProperties from an element.
- Parameters:
propsElem - a SignatureProperties element
- Throws:
javax.xml.crypto.MarshalException - if a marshalling error occurs
getProperties
public java.util.List getProperties()
- Specified by:
getProperties in interface javax.xml.crypto.dsig.SignatureProperties
getId
public java.lang.String getId()
- Specified by:
getId in interface javax.xml.crypto.dsig.SignatureProperties
marshal
public void marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context)
throws javax.xml.crypto.MarshalException
- Specified by:
marshal in class DOMStructure
- Throws:
javax.xml.crypto.MarshalException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object